<?php
/**
* 订单服务
*/
class ElemeOrderSvc extends ElemeCommon
{
    
    /** 获取订单
     * @param $order_id 订单Id
     * @return mixed
     */
    public function getOrder($params)
    {
        $protocol = array(
            "nop" => '1.0.0',
            "id" => $this->create_uuid(),
            "action" => 'eleme.order.getOrder',
            "token" => $this->token,
            "metas" => array(
                "app_key" => $this->app_key,
                "timestamp" => time(),
            ),
            "params" => $params
        );

        $protocol['signature'] = $this->generate_signature($protocol);

        $result = $this->doPost($this->api_request_url, $protocol);
        return $result;
    }
}